package itdfq.dfq.Behavior_Patters.zhizelian;

/**
 * @Author GocChin
 * @Date 2021/5/3 18:22
 * @Blog: itdfq.com
 * @QQ: 909256107
 */
public class Fudaoyuan  extends Leaders{
    public Fudaoyuan(String name) {
        super(name);
    }

    @Override
    public void handleRe(Scholarship scholarship) {
          if (scholarship.getMoney()<500&&scholarship.getMoney()>=0){
              System.out.println("辅导员"+name+"批准"+scholarship.getName()+"的研究经费："+scholarship.getMoney());
          }else{
              if (this.leaders!=null){
                  this.leaders.handleRe(scholarship);
              }
          }
    }
}
